<!DOCTYPE html>
<html>
<html>
<head>
    <title>tool</title>
    <style type="text/css">
        .bg {
            background-color: rgb(84, 127, 177);
        }

        tr {
            height: 20px;
            font-size: 12px;
        }

        .specialHeight {
            height: 40px;
        }
    </style>
</head>
<body>
<div style="width:800px; margin: 0 auto">
    <#list table as t>
    <h4>${t.title}</h4>
    <h5>${t.tag}</h5>
    <table border="1" cellspacing="0" cellpadding="0" width="100%">
        <tr class="bg">
            <td colspan="5">
                <c:out value="${t.tag}"/>
            </td>
        </tr>
        <tr>
            <td>接口描述</td>
            <td colspan="4">${t.description}</td>
        </tr>
        <tr>
            <td>URL</td>
            <td colspan="4">${t.url}</td>
        </tr>
        <tr>
            <td>请求方式</td>
            <td colspan="4">${t.requestType}</td>
        </tr>
        <tr>
            <td>请求类型</td>
            <td colspan="4">${t.requestForm}</td>
        </tr>
        <tr>
            <td>返回类型</td>
            <td colspan="4">${t.responseForm}</td>
        </tr>

        <tr class="bg" align="center">
            <td>参数名</td>
            <td>数据类型</td>
            <td>参数类型</td>
            <td>是否必填</td>
            <td>说明</td>
        </tr>
        <#list t.requestList as req>
        <tr align="center">
            <td>${req.name}</td>
            <td>${req.type}</td>
            <td>${req.paramType}</td>
            <#if req.require == true>
            <td>Y</td>
            <#else>
            <td>N</td>
        </
        #if>
        <td>${req.remark}</td>
        </tr>
    </
    #list>
    <tr class="bg" align="center">
        <td>状态码</td>
        <td>描述</td>
        <td colspan="3">说明</td>
    </tr>
    <#list t.responseList as res>
    <tr align="center">
        <td>${res.name}</td>
        <td>${res.description}</td>
        <td colspan="3">${res.remark}
        </td>
    </tr>
</
#list>
<!--<tr class="bg">-->
<!--    <td colspan="5">示例</td>-->
<!--</tr>-->
<!--<tr class="specialHeight">-->
<!--    <td class="bg">请求参数</td>-->
<!--    <td colspan="4">${t.requestParam}</td>-->
<!--</tr>-->
<!--<tr class="specialHeight">-->
<!--    <td class="bg">返回值</td>-->
<!--    <td colspan="4">${t.responseParam}</td>-->
<!--</tr>-->
</table>
<br>
</
#list>
</div>
</body>
</html>
